package xuxiu;

import cn.xuxiu.App;
import cn.xuxiu.org.service.IEmployeeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
public class SpringTest2 {

    @Autowired
    private IEmployeeService employeeService;

    @Test
    public void test1() throws Exception{
        employeeService.loadAll().forEach(System.out::println);
    }
}
